package com.ioc.factory;

import com.ioc.dao.UserDao;
import com.ioc.dao.impl.UserDaoImpl;

public class UserDaoFactory {

    private static UserDao userDao;


    public static UserDao getUserDao(){
        if (userDao==null){
            userDao = new UserDaoImpl();
        }
        return userDao;
    }


}
